import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/index'
import Setting from '@/components/setting'
import gameHome from '@/components/gameHome'
import Show from '@/components/show'
import Auth from '@/components/auth'
import Search from '@/components/search'
import Prepare from '@/components/prepare'
import Poll from '@/components/poll'
import Out from '@/components/out'
import Result from '@/components/result'
Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: Index
    },
    {
      path: '/search',
      name: 'search',
      component: Search,
    },
    {
      path: '/auth',
      name: 'auth',
      component: Auth,
    },
    {
      path: '/setting',
      name: 'setting',
      component: Setting,
    },
    {
      path: '/gamehome',
      name: 'gamehome',
      component:gameHome
    },
    {
      path: '/show',
      name: 'show',
      component:Show
    },
    {
      path: '/prepare',
      name: 'prepare',
      component:Prepare
    },
    {
      path: '/poll',
      name: 'poll',
      component:Poll
    },
    {
      path: '/out',
      name: 'out',
      component:Out
    },
    {
      path: '/result',
      name: 'result',
      component:Result
    }
  ]

})
